.error {
    color: red;
}

.success {
    color: green;
}

/*==========header start==========*/
#header {
    background-color: #393D49;
}

#header .header-content {
    display: flex; /*弹性布局*/
    justify-content: space-between; /*两端对齐*/
}

#header .logo {
    width: 200px;
    height: 60px;
}

/*==========search start==========*/
#header .search {
    height: 60px;
    line-height: 60px; /*盒子内内容上下居中*/
}

#header .search #inputKeywords {
    height: 30px;
    width: 300px;
    border-radius: 15px 0 0 15px;
    margin-right: -6px;
    border: 2px solid #1e9fff;
    text-indent: 2em; /*文字缩进两个字符*/
}

#header .search .btn {
    height: 30px;
    line-height: 28px; /*实现btn和搜索框同高*/
    border-radius: 0 15px 15px 0;
    width: 60px;
    border: 1px solid #1e9fff;
    color: white;
    background-color: #1e9fff;
    cursor: pointer;
}

#header .search .search-item {
    background-color: white;
    margin-top: -10px;
}

#header .search .search-item li {
    line-height: 30px;
    height: 30px;
    cursor: pointer;
}

/*==========search end==========*/
#header .nav a {
    color: black;
}

#header .nav .login {
    color: #ff5722;
    display: inline-block;
    padding: 0px;
}

#header .nav .register {
    display: inline-block;
    padding: 0px;
}

#header .nav .register:hover {
    color: #ff5722;
}

/*==========header end==========*/

/*==========main start==========*/
#main .main-content {
    display: flex; /*弹性布局*/
    justify-content: space-between; /*两端对齐*/
    position: relative;
}

/*==========menu start==========*/
#main .main-content #menu {
    width: 250px;
    margin-top: 0;
}

#main .main-content .layui-menu li {
    position: static; /*清除定位*/
}

#main .main-content #menu .layui-menu-body-panel {
    top: -2px;
    margin-left: -2px;
    padding: 0;
    width: 898px;
}

#main .main-content #menu .submenu {
    width: 850px;
}

#main .main-content #menu span a {
    display: inline-block;
}

/*==========menu end==========*/

/*==========banner start==========*/
#main .main-content #banner img {
    height: 100%;
    width: 920px;
}

/*==========banner end==========*/

/*==========good-goods start==========*/
#main .layui-elem-field legend {
    font-weight: 400;
}

#main .layui-elem-field legend span {
    margin-right: 10px;
    letter-spacing: 2px; /*字间距*/
}

#main .layui-elem-field legend .layui-badge {
    vertical-align: middle;
}

#main .good-list .layui-card-header {
    height: 255px;
    width: 255px;
}

#main .good-list .layui-card-header .img {
    background: #0C0C0C;
    position: relative;
    height: 100%;
    border-radius: 10px;
}

#main .good-list .layui-card-header img {
    height: 100%;
    border-radius: 10px; /*图片小圆角*/
    /*实现图片居中*/
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /*当使用：top: 50%;left: 50%;， 是以左上角为原点，故不处于中心位置
    translate(-50%,-50%) 作用是，往上（x轴）,左（y轴）移动自身长宽的 50%，以使其居于中心位置*/
    opacity: 0.8; /*从 0.0 （完全透明）到 1.0（完全不透明）*/
}

#main .good-list .layui-card-header img:hover {
    opacity: 0.9;
    transition: all .3s; /*产生过渡效果*/
}

#main .good-list .layui-card-body h4 {
    font-size: 18px;
    text-align: center;
}

#main .good-list .layui-card:hover h4 {
    color: #FF5722;
}

#main .good-list .layui-card-body p {
    white-space: nowrap; /*文本不会换行，文本会在在同一行上继续*/
    overflow: hidden; /*超出部分隐藏*/
    text-overflow: ellipsis; /*显示省略符号来代表被修剪的文本*/
    color: gray;
}

/*==========good-goods end==========*/
/*==========main end==========*/

/*==========footer start==========*/
#footer {
    color: white;
    /*position: fixed;*/
    /*bottom: 0;*/
    /*width: 100%;*/
}

#footer .footer-one {
    width: 100%;
    height: 120px;
    background: gray;
}

#footer .footer-one .layui-container {
    height: 120px;
    background: gray;
    margin: 0 auto;
    font: inherit;
    border: 1px solid gray;
    box-sizing: border-box;
}

#footer .footer-one .layui-container p {
    text-align: center;
    line-height: 31px;
}

#footer .footer-one .layui-container .top-content {
    margin-top: 25px;
}

#footer .footer-one .layui-container .top-content .layui-breadcrumb a {
    color: white !important;
}

#footer .footer-one .layui-container .top-content .about-me,
#footer .footer-one .layui-container .bottom-content .tel {
    margin-left: 20px;
}

#footer .footer-two {
    width: 100%;
    height: 60px;
    background: #373c46;
}

#footer .footer-two .layui-container {
    height: 60px;
    background: #373c46;
    margin: 0 auto;
    line-height: 60px;
}

#footer .footer-two .layui-container p {
    text-align: center;
    font: inherit;
}

/*==========footer end==========*/
.success{
    color:green;
}
.error{
    color:red;
}
.warning{
    color:yellow;
}